package com.huawei.hms.support.api.sns;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.api.entity.sns.internal.GetFriendListResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiSnsApiImpl$1 extends PendingResultImpl<FriendListResult, GetFriendListResp> {
    HuaweiSnsApiImpl$1(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }

    public /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        return a((GetFriendListResp) iMessageEntity);
    }

    public FriendListResult a(GetFriendListResp getFriendListResp) {
        FriendListResult friendListResult = new FriendListResult();
        friendListResult.setStatus(Status.SUCCESS);
        friendListResult.setFriends(getFriendListResp.getFriends());
        HMSLog.i("HuaweiSnsApiImpl", "getFriendList onComplete");
        return friendListResult;
    }
}
